package struts.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import struts.bean.LoginForm;
import struts.form.Form;

public class LoginAction implements Action{

	public String execute(Map<String, String> map,Form form,HttpServletRequest request) {
		LoginForm lf = (LoginForm)form;
		if(lf.getUsername().equals("ww")){
			return map.get("SUCCESS");
		}
		
		return map.get("FAILED");
	}

}
